﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Engine.Transactions.*;
    import Engine.Managers.*;
    import Modules.stats.experiments.*;

    public class TStreakBonus extends Transaction {

        protected var m_data:Array;

        public function TStreakBonus(_arg1:int, _arg2:int){
            this.m_data = new Array();
            this.m_data["amount"] = _arg1;
            this.m_data["maxesReached"] = _arg2;
            var _local3:int = Global.experimentManager.getVariant(ExperimentDefinitions.EXPERIMENT_DOOBER_TRACKING);
            if (_local3){
                StatsManager.count("doobers", "streak_bonus_sent", "client", _arg1.toString(), _arg2.toString(), Global.player.level.toString());
            };
        }
        override public function perform():void{
            signedCall("UserService.streakBonus", this.m_data);
        }

    }
}//package Transactions 
